package com.bdqn.service.impl;
import com.bdqn.mapper.UserMapper;
import com.bdqn.pojo.User;
import com.bdqn.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User login(String usrName, String usrPassword) {
        return userMapper.login(usrName,usrPassword);
    }
    //根据用户名查询用户对象
    @Override
    public User getUserByUsrName(String usrName) {
        return userMapper.findUserByUsrName(usrName);
    }
}
